﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiduRules.CustomRule
{  
    // 示例规则类：检查数字是否小于100  
    public class LessThan100Rule : IValidationRule<int>
    {
        public bool IsValid(int value)
        {
            return value <100;
        }

        public string ErrorMessage => "Value must be less than 100.";
    }
     
}
